package com.ruangong.GitClient.app.GitHubFile;

import android.os.Bundle;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.ruangong.GitClient.R;

public class FileContentActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_file_content);

        // 获取传递过来的文件内容
        String fileContent = getIntent().getStringExtra("fileContent");

        // 将文件内容显示在TextView中
        TextView textView = findViewById(R.id.text_file_content);
        textView.setText(fileContent);
    }
}
